-
Notifications
You must be signed in to change notification settings - Fork 47.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore children with clashing keys #1364
Conversation
cc @cpojer |
niiiice |
'flattenChildren(...): Encountered two children with the same key, `%s`. ' + | ||
'Children keys must be unique.', | ||
'Children keys should be unique; all children after the first with a ' + | ||
'given key will be ignored.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps a bit anal; to me it's not super obvious if it refers to all children, after the given key or or all subsequent children with the given key. Could perhaps benefit from a rewording, "Child keys must be unique; only the first child for each conflicting key is rendered, the rest are ignored.", must to emphasize that you should not rely on it as a feature (which seems like a bad thing)... or something along those lines perhaps?
PS. Children keys
is not gramatically correct I think? Child keys
sounds better to me, but I'm not 100% sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good points, fixed.
Like |
Ignore children with clashing keys
Fixes #566.